import request from '@/utils/request'
// gasManage:stockManage:shelfManage:list
export function searchShelvesApi (query) {
    return request({
        url: '/stock/shelves/list',
        method: 'get',
        params: query
    })
}
// gasManage:stockManage:shelfManage:add
export function addShelfApi(data) {
    return request({
        url: '/stock/shelves',
        method: 'post',
        data: data
    })
}
// gasManage:stockManage:shelfManage:list
export function searchShelfByIdApi(id) {
    return request({
        url: '/stock/shelves/'+id,
        method: 'get'
    })
}
// gasManage:stockManage:shelfManage:edit
export function editShelfApi(data) {
    return request({
        url: '/stock/shelves/',
        method: 'put',
        data: data
    })
}
// gasManage:stockManage:shelfManage:delete
export function deleteShelfApi(id) {
    return request({
        url: '/stock/shelves/delete/'+id,
        method: 'delete'
    })
}